<div class="slider_container">
    <div class="slider-wrapper theme-default ie78_css3">
       
       <?php 
				$query ="SELECT * FROM gallery 
                JOIN gallery_description ON gallery.gallery_id=gallery_description.gallery_id 
                JOIN gallery_to_category ON gallery.gallery_id=gallery_to_category.gallery_id AND category_id=46";
				$q=mysql_query($query) or die(mysql_error());
				$rows=mysql_num_rows($q);
				if ($rows==0)
				{
					echo "<h1>Ingen partner at vise<h1>";
				}
				else
				echo ' <div id="slider" class="nivoSlider">';
				{
				
					while($temp=mysql_fetch_assoc($q)){?>
                  <a href="<?php echo $temp['web_link']; ?>"><img src="./image/<?php echo $temp['image']; ?>" alt="" title="#htmlcaption<?php echo $temp['gallery_id']; ?>" /></a>			               
               
				  <div id="htmlcaption<?php echo $temp['gallery_id']; ?>" class="nivo-html-caption">
        
				  <span class="nivoCaption"><?php echo $temp['name']; ?></span>
                  <span><?php echo $temp['meta_description']; ?></span>
                  </div>   

                  
                    <?php                   
                    }
				} 
				echo '</div>';  
				?>
         
    </div>
</div>